package com.mk.domain;

import com.github.d925529.apidoc.annotation.ApiField;
import org.beetl.sql.core.annotatoin.AssignID;
import org.beetl.sql.core.annotatoin.Param;
import org.beetl.sql.core.annotatoin.Table;
import org.beetl.sql.core.mapper.BaseMapper;

import java.io.Serializable;

@Table(name = "cm_resource")
@SuppressWarnings("unused")
public class CmResource implements Serializable {
    @AssignID
    //资源id
    @ApiField("资源id")
    private String rsid;
    
    //资源名称
    @ApiField("资源名称")
    private String rsname;
    
    //资源类别
    @ApiField("资源类别")
    private String rstype;
    
    //资源地址
    @ApiField("资源地址")
    private String rsuri;
    
    //资源代码
    @ApiField("资源代码")
    private String rscode;
    
    //是否有效(0.否，1.是)
    @ApiField("是否有效(0.否，1.是)")
    private String isactive;
    
    //备注
    @ApiField("备注")
    private String remark;

    //创建时间
    @ApiField("创建时间")
    private String createtime;

    //文件夹id
    @ApiField("文件夹id")
    private String cfid;

    @ApiField("创建者")
    private String createrid;

    public String getCreaterid() {
        return createrid;
    }

    public void setCreaterid(String createrid) {
        this.createrid = createrid;
    }

    /**
     * @return 资源id
     */
    public String getRsid(){
        return rsid;
    }
    /**
     * @param rsid 资源id
     */
    public void setRsid(String rsid){
        this.rsid = rsid;
    }
    
    /**
     * @return 资源名称
     */
    public String getRsname(){
        return rsname;
    }
    /**
     * @param rsname 资源名称
     */
    public void setRsname(String rsname){
        this.rsname = rsname;
    }
    
    /**
     * @return 资源类别
     */
    public String getRstype(){
        return rstype;
    }
    /**
     * @param rstype 资源类别
     */
    public void setRstype(String rstype){
        this.rstype = rstype;
    }
    
    /**
     * @return 资源地址
     */
    public String getRsuri(){
        return rsuri;
    }
    /**
     * @param rsuri 资源地址
     */
    public void setRsuri(String rsuri){
        this.rsuri = rsuri;
    }
    
    /**
     * @return 资源代码
     */
    public String getRscode(){
        return rscode;
    }
    /**
     * @param rscode 资源代码
     */
    public void setRscode(String rscode){
        this.rscode = rscode;
    }
    
    /**
     * @return 是否有效(0.否，1.是)
     */
    public String getIsactive(){
        return isactive;
    }
    /**
     * @param isactive 是否有效(0.否，1.是)
     */
    public void setIsactive(String isactive){
        this.isactive = isactive;
    }
    
    /**
     * @return 备注
     */
    public String getRemark(){
        return remark;
    }
    /**
     * @param remark 备注
     */
    public void setRemark(String remark){
        this.remark = remark;
    }

    public String getCreatetime() {
        return createtime;
    }

    public void setCreatetime(String createtime) {
        this.createtime = createtime;
    }

    public String getCfid() {
        return cfid;
    }

    public void setCfid(String cfid) {
        this.cfid = cfid;
    }

    public interface Mapper extends BaseMapper<CmResource> {
        int selectCntByCfid(@Param("cfid") String cfid);
    }
}